//<T>泛型标识--类型形参
//创建对象时这里指定具体的数据类型
class MyArray<T>{
    private T key;

    public MyArray(T key) {
        this.key = key;
    }

    public T getKey() {
        return key;
    }

    public void setKey(T key) {
        this.key = key;
    }

    @Override
    public String toString() {
        return "MyArray{" +
                "key=" + key +
                '}';
    }
}
public class Test {

}
